package com.lgj.rocketmq.product.callback;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.producer.SendResult;

@Slf4j
public class DefaultSendCallBack extends AbstractSendCallBack{
    @Override
    protected String getCallTag() {
        return "default";
    }

    @Override
    public void onSuccess(SendResult sendResult) {
        log.info("消息：{}发送成功",sendResult.toString());
    }

    @Override
    public void onException(Throwable e) {
        log.info("消息：{}发送失败",e.toString());
    }
}
